<%@ page language="java" import="java.util.*"
	contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib uri="http://www.opensymphony.com/sitemesh/decorator"
	prefix="decorator"%>
<%@ taglib uri="http://www.opensymphony.com/sitemesh/page" prefix="page"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sx" uri="/struts-dojo-tags"%>
<%@page import="com.flying.dcss.userpermissions.bo.impl.DcssUser"%>
<%@page import="com.flying.dcss.app.CommonHelper"%>
<%@page import="javax.xml.registry.infomodel.User"%>
<%@page import="com.flying.dcss.app.SessionName"%>

<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">
		<title><decorator:title default="查询" /></title>
		<!--被装饰页面的Title-->

		<decorator:head />
		<!--被装饰页面的head-->
		<link rel="stylesheet" href="style/element.css" />
		<link href="style/replaceBlock.css" rel="stylesheet" type="text/css" />
	</head>

	<body style="background: url(images/bodyBG.gif) repeat-x;">
		<%
			DcssUser user = (DcssUser) session
					.getAttribute(SessionName.UserSession);
		%>
		<div class="main">
			<div class="header">
				<img src="images/Logo1.gif" class="logo" />
				<img src="images/line.gif" />
				<img src="images/Logo2.gif" class="logo" />
				<ul class="nav">
					
					<li>
						<a href="<%=basePath%>account/logout.do">退出</a>
					</li>
					<li>
						<a href="<%=basePath%>home/faq.jsp">FAQs</a>
					</li>
					<li>
						<a href="<%=basePath%>home/contact.jsp">联系我们</a>
					</li>
					<li>
						<a href="<%=basePath%>home/aboutus.jsp">关于我们</a>
					</li>
					<li>
						<a href="#">首页</a>
					</li>
				</ul>
			</div>
			<div class="content">
				<div class="left">
					<div class="user">
						<label id="email" style="display: none;"><%=user.getEmail()%></label>
						<table
							style="border: 2px rgb(162, 162, 162) solid; margin: 20px auto; color: white;">
							<tr>
								<td>
									用户名：
								</td>
							</tr>
							<tr>
								<td class="even">
									<%=user.getUsername()%>
								</td>
							</tr>
							<tr>
								<td>
									权限等级：
								</td>
							</tr>
							<tr>
								<td class="even">
									<%=CommonHelper.showLevelText(user.getLevel())%>
								</td>
							</tr>
							<tr>
								<td>
									上次登录：
								</td>
							</tr>
							<tr>
								<td class="even">
									<%=CommonHelper.formatDate(user.getLastLoginTime())%>
								</td>
							</tr>
						</table>
						<div class="notifications" style="background-image:url('../images/active3.png')">
							<span><a href="<%=basePath%>home/message.jsp" title="" class="notifypop">系统消息</a> </span>
						</div>
					</div>
					<ul class="list">
						<li id="high1">
							<a href="<%=basePath%>search/dcinfo.jsp">查询门禁权限</a>
						</li>
						<li id="high2">
							<a href="<%=basePath%>search/userinfo.jsp">查询员工信息</a>
						</li>
					</ul>
				</div>
				<div class="right">
					<div class="toolbar">
						<ul class="toolList">
							<li>
								<a href="<%=basePath%>account/index.jsp">用户权限管理</a>
							</li>
							<li>
								<a href="<%=basePath%>dcauthorization/index.jsp">门禁授权管理</a>
							</li>
							<li>
								<a href="<%=basePath%>emptycard/index.jsp">未使用卡检查</a>
							</li>
							<li>
								<a href="<%=basePath%>dcmanager/index.jsp">门禁信息管理</a>
							</li>
							<li>
								<a href="<%=basePath%>attendinfo/index.jsp">勤务信息系统</a>
							</li>
							<li id="active">
								<a href="<%=basePath%>search/index.jsp">查询</a>
							</li>
						</ul>
					</div>
					<div id="replace">
						<decorator:body />
						<!--被装饰页面的body-->
					</div>
				</div>
			</div>
			<div class="footer">
				版权归华中科技大学软件学院所有 Copyright Reserved
			</div>
		</div>
	</body>
</html>
